import { request } from '@/utils/request'
import type { ApiResponse, HttpMethod } from '@/types/global'

//获取首页数据
export const getHomeData = () => request('/homeData', {}, 'GET')

// 获取用户信息
export const getUserInfo = () => request('/me', {}, 'GET')
//修改个人资料
export const updateProfile = (params: any) => request('/updateProfile', params, 'POST')
//修改密码
export const updatePassword = (params: any) => request('/updatePassword', params, 'POST')

//获取配置信息
export const getConfigs = (params: any) => request('/configs', params, 'GET')
//保存配置信息
export const saveConfigs = (params: any) => request('/configs/save', params, 'POST')
